/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter3;

/**
 *
 * @author Denise Carolina
 */
public class SelfTest2 {

    static String invade(short s){ return "a few";}
    static String invade(short ... s) {return "many";}

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int x = 7;
        //System.out.println(invade(x));// illegal
        System.out.println(invade((short)x));
    }

}
